import os.path
import time

from selenium import webdriver
from selenium.webdriver.common.by import By
driver = webdriver.Chrome()
file = 'file:///' + os.path.abspath('html3') + '/radio-checkbox.html'
driver.get(file)
boy = driver.find_element(By.ID, "boy")
boy.click()
print(boy.is_selected())

girl = driver.find_element(By.ID, "girl")
print(girl.is_selected())
girl.click()
print(girl.is_selected())

driver.quit()